home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / Make / source / makefile.com < prev    next >
Encoding:
Makefile  |  1997-08-27  |  1.3 KB  |  35 lines

  1. $!
  2. $! Makefile.com - builds GNU Make for VMS
  3. $!
  4. $! P1 is non-empty if you want to link with the VAXCRTL library instead
  5. $!    of the shareable executable
  6. $!
  7. $ def/nolog sys sys$library:
  8. $ filelist = "alloca ar arscan commands default dir expand file function implicit job main misc read remake remote-stub rule signame variable version vmsfunctions vmsify vpath [.glob]glob [.glob]fnmatch getopt getopt1"
  9. $ copy config.h-vms config.h
  10. $ n=0
  11. $ loop:
  12. $ cfile = f$elem(n," ",filelist)
  13. $ if cfile .eqs. " " then goto linkit
  14. $ write sys$output "Compiling ''cfile'..."
  15. $ call compileit 'cfile' 'p1'
  16. $ n = n + 1
  17. $ goto loop
  18. $ linkit:
  19. $ if p1 .nes. "" then goto link_using_library
  20. $ link/exe=make alloca,ar,arscan,commands,default,dir,expand,file,function,-
  21.         implicit,job,main,misc,read,remake,remote-stub,rule,-
  22.         signame,variable,version,vmsfunctions,vmsify,vpath,-
  23.         glob,fnmatch,getopt,getopt1
  24. $ exit
  25. $ link_using_library:
  26. $ link/exe=make alloca,ar,arscan,commands,default,dir,expand,file,function,-
  27.         implicit,job,main,misc,read,remake,remote-stub,rule,-
  28.         signame,variable,version,vmsfunctions,vmsify,vpath,-
  29.         glob,fnmatch,getopt,getopt1,sys$library:vaxcrtl/lib
  30. $!
  31. $ compileit : subroutine
  32. $ cc/include=([],[.glob])/define=("allocated_variable_expand_for_file=alloc_var_expand_for_file","unlink=remove","HAVE_CONFIG_H","VMS") 'p1'
  33. $ exit
  34. $ endsubroutine : compileit
  35.